package org.linuxsogood.boot.hutool;

import cn.hutool.core.convert.Convert;

import java.util.Date;

public class ConverTest {
    public static void main(String[] args) {
        int a = 1;
        String s = Convert.toStr(a);
        System.out.println("s = " + s);
        Integer integer = Convert.toInt(s);
        System.out.println("integer = " + integer);

        Date date = Convert.toDate("2019-10-29");
        System.out.println("date = " + date);
    }
}
